<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">




<ui:composition template="template.xhtml">

	<ui:define name="content">

		<p:fieldset styleClass="fieldset" legend=" ** Login ** ">

	<h:form id="loginForm">
			<p:panelGrid id="LoginGrid" styleClass="panelgrid" cellspacing="8" columns="3">
	    		<p:focus />
	    		
	    			<h:outputText value="Username" id="username"></h:outputText>
	    			<p:inputText value="#{bean.user.username}" requiredMessage="Please type username" required="true"></p:inputText>
	    			<p:message for="username" ></p:message>
	    			
	    			<h:outputText value="Password" id="pass"></h:outputText>
	    			<p:inputText value="#{bean.user.password}" requiredMessage="Please type password" required="true"></p:inputText>
	    			<p:message for="username" ></p:message>
	    			
	    			<h:outputText value=" "></h:outputText>
	    			<h:outputText value="  "></h:outputText>
	    			<h:outputText value="  "></h:outputText>
	    			
	    			<p:commandButton id="loginButton" value="Login" action="#{bean.action()}"></p:commandButton>
	    			<h:outputText style="color:red" value="  " />
	    			
					
				
		</p:panelGrid>
	</h:form>	
			
		</p:fieldset>
	</ui:define>

</ui:composition>
</html>